<?php
/**
 * Determine if there is a currently authenticated user from within the view.
 * This is used to show/hide things like login buttons.
 *
 * @package     Visi
 * @subpackage  View Helpers
 * @author      Luke Visinoni <luke.visinoni@gmail.com>
 * @copyright   (c) 2011 Coalition Technologies <joel@coalitiontechnologies.com>
 * @version     $Id$
 */
class Visi_View_Helper_IsLoggedIn extends Zend_View_Helper_Abstract {

    public function isLoggedIn() {
    
        return (bool) Zend_Auth::getInstance()->hasIdentity();
    
    }

}